Ore Processor equipment for Giles William's Oolite
By Dr. Nil.

The Ore Processor costs 3500 Cr and can be found at shipyards of tech level 12 or higher.

It attaches to the fuel scoop and instantly extracts valuable materials from mined asteroid splinters.

Processing the ore costs a certain amount of energy.


Thanks to Little Bear, Cmdr Wyvern, Griff and DaddyHoggy for creative input and bugsquashing.

Special Thanks to Ark for updating this OXP to v.1.5 and to Kaks for finally ironing out the terrible edible killer asteroid bug by making the Ore Processor work differently in different versions of Oolite

----------------------

Version info 

v.1.53

Update by Eric:
- Gave all barrels a js script. These scripts are used by Oolite 1.70+. scripts now can differentiate between singular and plural form in messages, based on actual quantity after quantity randomisation.
- Older oolite versions will use the old script_action code. Here I deliberately let the Gem splinters award gold in the script_action because the windows version of pre 1.70 Oolites had a bug that it gave food instead of gems. This way a condition is avoided.
- Added new textures for different splinters. (used by Oolite 1.70+.)
- Extracting ore now uses 64 units of energy. (= about one energy bank) On low energy situations no extraction takes place.
- Extraction now takes 5 seconds per splinter.
- Added extraction sound.
 
v.1.52

Update by Kaks:
- Bugfix.

v.1.51

Update by Kaks:
- The Ore Processer now works differently with Oolite 1.65 and Oolite 1.70 up. Gem stones only available in 1.70 up to stop splinters from awarding food.

v.1.5

- Price has been increased

update by Ark:
- Scripted messages tell the player what material has been extracted.
- The Ore Processor can now extract gem stones
- code has been optimized

v.1.03

No more rock candy. Seriously

v.1.02

Edible asteroids have been removed :o)